export interface Message {
  role: 'user' | 'assistant'
  content: string
  time: string
}

export interface ConversationAddRequest {
  conversationId?: string
  message: string
}

export interface BaseResponse<T> {
  code: number
  data: T
  message: string
}

export interface SseResponse {
  conversationId: string
  content: string
}

declare module '@/api/aiController' {
  export function doChatDemoSse(
    body: ConversationAddRequest,
    options?: { [key: string]: any }
  ): Promise<{ data: SseResponse[] }>
} 